home *** CD-ROM | disk | FTP | other *** search
/ Micromanía: 150 Juegos 2010 / 150Juegos_16.iso / Shareware / Shape Smash / shape-smash.swf / scripts / Box2D / Collision / _kn203.as < prev    next >
Encoding:
Text File  |  2010-05-14  |  1.3 KB  |  57 lines

  1. package Box2D.Collision
  2. {
  3.    import Box2D.Common.Math.b2Vec2;
  4.    import Box2D.Common._kc225;
  5.    
  6.    public class _kn203
  7.    {
  8.       public var points:Array;
  9.       
  10.       public var pointCount:int = 0;
  11.       
  12.       public var normal:b2Vec2;
  13.       
  14.       public function _kn203()
  15.       {
  16.          var _loc1_:int = 0;
  17.          pointCount = 0;
  18.          super();
  19.          points = new Array(_kc225.b2_maxManifoldPoints);
  20.          _loc1_ = 0;
  21.          while(_loc1_ < _kc225.b2_maxManifoldPoints)
  22.          {
  23.             points[_loc1_] = new _cc280();
  24.             _loc1_++;
  25.          }
  26.          normal = new b2Vec2();
  27.       }
  28.       
  29.       public function _br741(param1:_kn203) : void
  30.       {
  31.          var _loc2_:int = 0;
  32.          pointCount = param1.pointCount;
  33.          _loc2_ = 0;
  34.          while(_loc2_ < _kc225.b2_maxManifoldPoints)
  35.          {
  36.             (points[_loc2_] as _cc280)._br741(param1.points[_loc2_]);
  37.             _loc2_++;
  38.          }
  39.          normal._kh737(param1.normal);
  40.       }
  41.       
  42.       public function _px508() : void
  43.       {
  44.          var _loc1_:int = 0;
  45.          _loc1_ = 0;
  46.          while(_loc1_ < _kc225.b2_maxManifoldPoints)
  47.          {
  48.             (points[_loc1_] as _cc280)._px508();
  49.             _loc1_++;
  50.          }
  51.          normal._he34();
  52.          pointCount = 0;
  53.       }
  54.    }
  55. }
  56.  
  57.